package com.lab.idea.bl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lab.idea.mybatis.entity.LabEntity;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 输出配置
 * </p>
 *
 * @author lab
 * @since 2023-11-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("bl_excel_out")
@ApiModel(value = "ExcelOut对象", description = "输出配置")
public class ExcelOut extends LabEntity<ExcelOut> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "outId", type = IdType.ASSIGN_ID)
    private String outId;

    @TableField("excelId")
    private String excelId;

    @TableField("beforeSql")
    private String beforeSql;

    @TableField("beforeScript")
    private String beforeScript;

    @TableField("querySql")
    private String querySql;

    @TableField("queryScript")
    private String queryScript;

    @TableField("outName")
    private String outName;

    @TableField(value = "copyId",exist = false)
    private String copyId;

    @Override
    public Serializable pkVal() {
        return this.outId;
    }
}
